﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Manipulation - Inserting Around</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("p").wrapInner($("<div class='wrap'>"));
            //$("span").wrapAll("<div><div><p><em><b></b></em></p></div></div>");
        });
    </script>
    <style type="text/css">
    .wrap
    {
        padding:13px;
        margin:13px;
        border:dashed 1px #000;
    }
    
    p
    {
        border:solid 1px #000;
    }
    </style>
</head>
<body>
<p>Hello</p>
<span>Span 1</span>
<p>Im using</p>
<span>Span 2</span>
<p>jQuery</p>
</body>
</html>
